<?php

namespace app\admin\controller\mall;

use app\admin\traits\Curd;
use app\common\controller\AdminController;
use app\common\lib\Show;
use app\common\lib\Status;
use app\common\model\MallBanner;
use think\App;
use EasyAdmin\annotation\ControllerAnnotation;
use EasyAdmin\annotation\NodeAnotation;

/**
 * Class Admin
 * @package app\admin\controller\system
 * @ControllerAnnotation(title="轮播图管理")
 */
class Banner extends AdminController
{
    use Curd;
    public function __construct(App $app)
    {
        parent::__construct($app);
        $this->model =(new MallBanner());

    }
    public function getTypeList(){
        $type = $this->model->getTypeList();
        return Show::json_show(Status::mini_normal,"ok",$type);
    }
}